/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2017
 */


package com.sys.console.common.base;

import java.io.Serializable;
import java.util.ArrayList;

public interface BaseMapper<T extends Serializable, PK extends Serializable> {

	int deleteByPrimaryKey(PK id);

    int insert(T entity);

    int updateByPrimaryKeySelective(T entity);

    int updateByPrimaryKey(T entity);
    
    T selectByPrimaryKey(PK id);
    
    int selectByPageCount(T entity);
    
    ArrayList<T> selectByPage(T entity);
    
}